import http from "../utils/http";

const getInventoryList = () => http.get("api/inventory")
const addInventory = (params) => http.post("api/inventory", params)
const readInventory = (id) => http.get("api/inventory/" + id)
const updateInventory = (id, params) => http.put("api/inventory/" + id, params)
const passInventory = (id) => http.patch("api/inventory/" + id + "/pass")
const rejectInventory = (id, reason) => http.patch("api/inventory/" + id + "/reject", {reject_reason: reason})

export {getInventoryList, addInventory, readInventory, updateInventory, passInventory, rejectInventory}